/* AddressManagement.css */
.address-management {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Microsoft YaHei', sans-serif;
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.address-header h2 {
  font-size: 24px;
  color: #333;
}

.add-btn {
  background-color: #e93b3b;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.add-btn span {
  font-size: 18px;
  margin-right: 5px;
}

.add-btn:hover {
  background-color: #d32f2f;
}

.address-list {
  margin-top: 20px;
}

.empty-address {
  text-align: center;
  padding: 40px 0;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.empty-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.empty-address p {
  color: #666;
  margin-bottom: 20px;
}

.address-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.address-item.default {
  border-left: 4px solid #e93b3b;
}

.address-info {
  flex: 1;
}

.address-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.address-header .name {
  font-weight: bold;
  margin-right: 15px;
}

.address-header .phone {
  color: #666;
  margin-right: 15px;
}

.default-tag {
  background-color: #e93b3b;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 2px;
}

.address-detail {
  color: #666;
  line-height: 1.5;
}

.address-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address-actions button {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 5px 0;
  text-align: left;
}

.address-actions button:hover {
  color: #e93b3b;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background-color: white;
  width: 500px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.close-btn:hover {
  color: #333;
}

form {
  padding: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-sizing: border-box;
}

.region-inputs {
  display: flex;
  gap: 10px;
}

.region-inputs input {
  flex: 1;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
}

.checkbox-group input {
  margin-right: 8px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 10px;
}

.cancel-btn {
  background-color: #f5f5f5;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.cancel-btn:hover {
  background-color: #e0e0e0;
}

.save-btn {
  background-color: #e93b3b;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.save-btn:hover {
  background-color: #d32f2f;
}